package com.rocching.easychat.util;

import java.util.List;

public class StringUtil {
    public static boolean isEmpty(String s) {
        return s == null || s.length() < 1;
    }

    public static boolean isNotEmpty(String s) {
        return !isEmpty(s);
    }

    public static <T> boolean isEmpty(List<T> list) {
        return list == null || list.size() == 0;
    }

    public static <T> boolean isNotEmpty(List<T> list) {
        return !isEmpty(list);
    }
}
